Port directive


Purpose

The Port directive sets what port httpd listens to for clients.


Syntax

Port num

num is a number from 0 - 65536. Most ports below 1024, except port 80, are reserved. The normal port for an HTTP daemon is 80, and this is the default for URLs that specify http:// service. Experimental services are often run on 8080 by loose convention.

Only one Port directive is allowed in the configuration file.


Default

If you do not specify a Port, httpd assumes:

Port 80


Examples

Port 8080

The server would listen to port 8080.

Port 84

The server would try to listen to port 84.

Return to Server Configuration File Overview


Robert B. Denny <rdenny@netcom.com>